package com.cyq.order.api;

import com.cyq.order.intercep.MultipartSupportConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "alibaba-stock-seata", path = "/stock", configuration = MultipartSupportConfig.class)
public interface StockServer {

    @RequestMapping("/reduct")
    String reduct(@RequestParam(value = "productId") Integer productId);
}
